package com.cmwa.scbp.sys.msg.service;

import java.util.List;
import java.util.Map;

import com.cmwa.scbp.base.mvc.entity.Page;
import com.cmwa.scbp.base.mvc.entity.SearchParam;
import com.cmwa.scbp.base.mvc.service.BaseService;
import com.cmwa.scbp.sys.msg.vo.MsgPublicEmailVo;

@SuppressWarnings({"rawtypes"})
public interface IMsgPublicEmailService extends BaseService<MsgPublicEmailVo>{
	public List<MsgPublicEmailVo> queryAllPublicEmail();
	public List<MsgPublicEmailVo> queryAllConfPublicEmail();
	public List<MsgPublicEmailVo> queryPublicEmailByConfId(Map map);
	public int deletePublicEmailByConfId(Map map);
	public int insertPublicEmailByConfId(String confId,String type,String[] pubcIds);
	public List<MsgPublicEmailVo> queryAllPublicEmailByName(SearchParam sp);
	
	/**
	 * 公邮分页
	 * @param sp
	 * @return
	 */
	public Page<MsgPublicEmailVo> publicEmailListPage(SearchParam sp);
	
	/**
	 * 查询单个公邮
	 * @param id
	 * @return
	 */
	MsgPublicEmailVo queryById(String id);
}
